package com.inspur.dgov.policy.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.inspur.dgov.common.tool.api.R;
import com.inspur.dgov.policy.entity.PolicySubjectRelation;
import com.inspur.dgov.policy.vo.EsPolicyVO;

import java.util.List;

/**
 * ES政策信息 服务类
 *
 * @Author chengxin.ju
 * @Date 20/3/18
 * @Version 1.0
 * @Description ES政策信息 服务类
 */
public interface EsPolicyService extends IService<EsPolicyVO> {

    /**
     * 插入数据到ES
     * @return
     */
    R insertEsPolicy(String policyId);

    /**
     * 更新数据到ES
     * @return
     */
    R updateEsPolicy(String policyId);

    /**
     * 更新政策专题到ES
     * @return
     */
    R updateEsPolicySubject(List<PolicySubjectRelation> list);

    /**
     * 从ES删除数据
     * @return
     */
    R deleteEsPolicy(String policyId);
}
